package com.vhall.component.entity.notice.vo;


import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author xianglei
 * @date 2021/4/22 19:55
 */
@Data
public class RedPacketNoticeVo implements Serializable {
    private static final long serialVersionUID = 3924717297823126778L;

    @NotBlank(message = "roomId不能为空")
    @Pattern(regexp = "[0-9a-zA-Z_]{1,32}")
    private String roomId;

    @NotBlank(message = "content不能为空")
    @Size(max = 300, message = "公告内容长度不能超过300个字符")
    private String content;

    /**
     * 发送人编号
     */
    @NotNull(message = "发送人编号不能为空")
    private Integer accountId;

    @NotNull(message = "红包编号")
    private String rpUuid;


    private Integer type = 1;

    private Integer noticeId;
}
